import Vue from 'vue'
import VueRouter from 'vue-router'
const Login =() => import("../views/Login")
const Regist =() => import("../views/Regist")

Vue.use(VueRouter)

const routes  = [
  {
    path:'/',
    redirect:'/login'
  },
  {
    path:"/login",
    name:Login,
    component:Login
  },
  {
    path:"/regist",
    name:Regist,
    component:Regist
  }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router

